package com.healthdata.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

@Data
@TableName("user")
public class User {
    @TableId(type = IdType.AUTO)
    private Long id;
    private String username;
    private String password;
    private String role; // ADMIN, RESEARCHER, AUDITOR
    private String email;
    private String phone;
    private Integer status; // 0:禁用, 1:启用
    private Date createTime;
    private Date updateTime;

    // 角色常量
    public static final String ROLE_ADMIN = "ADMIN";
    public static final String ROLE_RESEARCHER = "RESEARCHER";
    public static final String ROLE_AUDITOR = "AUDITOR";
}